#include "def.h"

extern SDL_Window *window;
extern SDL_Renderer *render;
extern SDL_Texture *display;

/* tracks whether to update the render (whenever the render is externally changed, this is set to true) */
extern int render_changed;

void init_graphics();
void cleanup_graphics();

void set_render_changed();
void pre_render();
void update_render();

void draw_rect(int x, int y, int w, int h);
void draw_img(char *file, SDL_Rect* rect);
